We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to add validation to a TAG-> textField unused initialize class?

How to add validation to a text field? <? php echo $ this-> TAG-> textField (array ("CONT_CODIGO", "size" => 30))?>

All validations I found the forum used the initialize class but I am using the devtoosl I have that class there



222
Accepted
answer

Try to implement in your project "Forns", according this documentation: https://docs.phalcon.io/en/latest/reference/forms.html

Then you can use validation: https://docs.phalcon.io/en/latest/reference/forms.html#validation